import patch from './patch'
import {unmount} from '../browserRendererOptions'

export default function render(vnode, container) {
  if(vnode) {
    patch(container._vnode, vnode, container, anchor)
  } else {
    if(container._vnode) {
      unmount(container)
    }
  }
}